<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen; http://apigen.org" />

	<title>Class Nette\Configurator</title>

	<link rel="stylesheet" href="resources/style.css?v=2011071314" type="text/css" media="all" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Nette Framework API documentation" />
	<script type="text/javascript" src="resources/combined.js"></script>
	<script type="text/javascript" src="allclasses.js"></script>
</head>

<body>
<div id="left">
	<a href="allclasses.html">All Classes</a>

	<h3>Namespaces</h3>
	<ul>
		<li><a href="namespace-none.html">none</a>
		</li>
		<li class="active"><a href="namespace-Nette.html">Nette</a>
		</li>
		<li><a href="namespace-Nette.Application.html">Nette\Application</a>
		</li>
		<li><a href="namespace-Nette.Caching.html">Nette\Caching</a>
		</li>
		<li><a href="namespace-Nette.Collections.html">Nette\Collections</a>
		</li>
		<li><a href="namespace-Nette.Config.html">Nette\Config</a>
		</li>
		<li><a href="namespace-Nette.Forms.html">Nette\Forms</a>
		</li>
		<li><a href="namespace-Nette.IO.html">Nette\IO</a>
		</li>
		<li><a href="namespace-Nette.Loaders.html">Nette\Loaders</a>
		</li>
		<li><a href="namespace-Nette.Mail.html">Nette\Mail</a>
		</li>
		<li><a href="namespace-Nette.Reflection.html">Nette\Reflection</a>
		</li>
		<li><a href="namespace-Nette.Security.html">Nette\Security</a>
		</li>
		<li><a href="namespace-Nette.Templates.html">Nette\Templates</a>
		</li>
		<li><a href="namespace-Nette.Web.html">Nette\Web</a>
		</li>
		<li><a href="namespace-PHP.html">PHP</a>
		</li>
	</ul>

	<hr />

	<h3>Classes</h3>

	<ul>
		<li><a href="Nette.ArrayTools.html">ArrayTools</a></li>
		<li><a href="Nette.Callback.html">Callback</a></li>
		<li><a href="Nette.Component.html">Component</a></li>
		<li><a href="Nette.ComponentContainer.html">ComponentContainer</a></li>
		<li class="active"><a href="Nette.Configurator.html">Configurator</a></li>
		<li><a href="Nette.DateTime.html">DateTime</a></li>
		<li><a href="Nette.Debug.html">Debug</a></li>
		<li><a href="Nette.Environment.html">Environment</a></li>
		<li><a href="Nette.Framework.html">Framework</a></li>
		<li><a href="Nette.FreezableObject.html">FreezableObject</a></li>
		<li><a href="Nette.GenericRecursiveIterator.html">GenericRecursiveIterator</a></li>
		<li><a href="Nette.Image.html">Image</a></li>
		<li><a href="Nette.ImageMagick.html">ImageMagick</a></li>
		<li><a href="Nette.InstanceFilterIterator.html">InstanceFilterIterator</a></li>
		<li><a href="Nette.Object.html">Object</a></li>
		<li><a href="Nette.ObjectMixin.html">ObjectMixin</a></li>
		<li><a href="Nette.Paginator.html">Paginator</a></li>
		<li><a href="Nette.RecursiveComponentIterator.html">RecursiveComponentIterator</a></li>
		<li><a href="Nette.ServiceLocator.html">ServiceLocator</a></li>
		<li><a href="Nette.SmartCachingIterator.html">SmartCachingIterator</a></li>
		<li><a href="Nette.String.html">String</a></li>
		<li><a href="Nette.Tools.html">Tools</a></li>
	</ul>

	<h3>Interfaces</h3>

	<ul>
		<li><a href="Nette.IComponent.html">IComponent</a></li>
		<li><a href="Nette.IComponentContainer.html">IComponentContainer</a></li>
		<li><a href="Nette.IDebuggable.html">IDebuggable</a></li>
		<li><a href="Nette.IServiceLocator.html">IServiceLocator</a></li>
		<li><a href="Nette.ITranslator.html">ITranslator</a></li>
	</ul>

	<h3>Exceptions</h3>

	<ul>
		<li><a href="Nette.AmbiguousServiceException.html">AmbiguousServiceException</a></li>
	</ul>
</div>

<div id="right">
	<form action="http://www.google.com/cse" id="search" onsubmit="if(this.q.value.indexOf('more:')==-1)this.q.value+=' more:api'">
		<input type="hidden" name="cx" value="011549293477758430224:vxofa9ufnhc" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" class="text" /><input type="submit" value="Search" />
	</form>

<div id="navigation">
	<ul>
		<li><a href="overview.html" title="Summary of all namespaces">Overview</a></li>
		<li><a href="namespace-Nette.html" title="Summary of Nette">Namespace</a></li>
		<li class="active">Class</li>
		<li><a href="elements.html">Elements</a></li>
	</ul>
</div>

<div id="content">
	<div id="classSummary">
		<p>namespace <a href="namespace-Nette.html">Nette</a></p>

		<h1>Class Configurator</h1>

		<div class="classDescription">
		
<p>Nette\Environment helper.</p>

		</div>

		<dl class="tree">
			<dd style="padding-left:0px">
				<a href="Nette.Object.html">Nette\Object</a>
				
			</dd>
			<dd style="padding-left:30px">
				<img src="resources/inherit.gif" alt="extended by" />
<b>Nette\Configurator</b>				
			</dd>
		</dl>



		<div class="classInfo">
			
				<b>Author:</b> David Grudl<br />
			<b>Located at</b> <a href="source-Environment.Configurator.php.html#19">/Environment/Configurator.php</a><br />
		</div>
	</div>


	<div id="methodSummary">
		<table class="summary">
		<caption>Method Summary</caption>
		<tr data-order="1 detect" id="_detect">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_detect">#</a>
			<code class="nowrap">
				<a href="source-Environment.Configurator.php.html#43" title="go to source code"><b>detect</b></a>(
					string
					<var>$name</var>
			)</code>

			<div class="short">
				
<p>Detect environment mode.</p>

			</div>

			<div class="detailed">
				
<p>Detect environment mode.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string mode name<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 loadConfig" id="_loadConfig">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.Config.Config.html">Nette\Config\Config</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_loadConfig">#</a>
			<code class="nowrap">
				<a href="source-Environment.Configurator.php.html#91" title="go to source code"><b>loadConfig</b></a>(
					string|<a href="Nette.Config.Config.html">Nette\Config\Config</a>
					<var>$file</var>
			)</code>

			<div class="short">
				
<p>Loads global configuration from file and process it.</p>

			</div>

			<div class="detailed">
				
<p>Loads global configuration from file and process it.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$file</code> string|<a href="Nette.Config.Config.html">Nette\Config\Config</a> file name or Config object<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Config.Config.html">Nette\Config\Config</a> </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 createServiceLocator" id="_createServiceLocator">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				<a href="Nette.IServiceLocator.html">IServiceLocator</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_createServiceLocator">#</a>
			<code class="nowrap">
				<a href="source-Environment.Configurator.php.html#236" title="go to source code"><b>createServiceLocator</b></a>(
			)</code>

			<div class="short">
				
<p>Get initial instance of service locator.</p>

			</div>

			<div class="detailed">
				
<p>Get initial instance of service locator.</p>




					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.IServiceLocator.html">IServiceLocator</a> </div>


			</div>
			</td>
		</tr>
		<tr data-order="0 createCacheStorage" id="_createCacheStorage">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				<a href="Nette.Caching.ICacheStorage.html">Nette\Caching\ICacheStorage</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_createCacheStorage">#</a>
			<code class="nowrap">
				<a href="source-Environment.Configurator.php.html#251" title="go to source code"><b>createCacheStorage</b></a>(
			)</code>

			<div class="short">
				
			</div>

			<div class="detailed">
				



					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Caching.ICacheStorage.html">Nette\Caching\ICacheStorage</a> </div>


			</div>
			</td>
		</tr>
		<tr data-order="0 createRobotLoader" id="_createRobotLoader">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				<a href="Nette.Loaders.RobotLoader.html">Nette\Loaders\RobotLoader</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_createRobotLoader">#</a>
			<code class="nowrap">
				<a href="source-Environment.Configurator.php.html#261" title="go to source code"><b>createRobotLoader</b></a>(
					
					<var>$options</var>
			)</code>

			<div class="short">
				
			</div>

			<div class="detailed">
				



					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Loaders.RobotLoader.html">Nette\Loaders\RobotLoader</a> </div>


			</div>
			</td>
		</tr>

		</table>
	</div>


	<h2>Methods Inherited From <a href="Nette.Object.html#methodSummary">Object</a></h2>
	<div class="box"><code>
		<a href="Nette.Object.html#_getClass" class="deprecated">getClass()</a>, <a href="Nette.Object.html#_getReflection">getReflection()</a>, <a href="Nette.Object.html#___call">__call()</a>, <a href="Nette.Object.html#___callStatic">__callStatic()</a>, <a href="Nette.Object.html#_extensionMethod">extensionMethod()</a>, <a href="Nette.Object.html#___get">__get()</a>, <a href="Nette.Object.html#___set">__set()</a>, <a href="Nette.Object.html#___isset">__isset()</a>, <a href="Nette.Object.html#___unset">__unset()</a>
	</code></div>





	<div id="propertySummary">
		<table class="summary">
		<caption>Property Summary</caption>
		<tr data-order="defaultConfigFile" id="$defaultConfigFile">
			<td align="right" width="1%"><code class="nowrap">
				 
				string
			</code></td>

			<td width="1%"><var>$defaultConfigFile</var></td>
			<td><pre><span class="php-quote">'%appDir%/config.ini'</span></pre></td>
			<td> <a href="#$defaultConfigFile" class="anchor">#</a></td>
		</tr>
		<tr data-order="defaultServices" id="$defaultServices">
			<td align="right" width="1%"><code class="nowrap">
				 
				array
			</code></td>

			<td width="1%"><var>$defaultServices</var></td>
			<td><pre><span class="php-keyword1">array</span> (
  <span class="php-quote">'Nette\\Application\\Application'</span> =&gt; <span class="php-quote">'Nette\\Application\\Application'</span>,
  <span class="php-quote">'Nette\\Web\\HttpContext'</span> =&gt; <span class="php-quote">'Nette\\Web\\HttpContext'</span>,
  <span class="php-quote">'Nette\\Web\\IHttpRequest'</span> =&gt; <span class="php-quote">'Nette\\Web\\HttpRequest'</span>,
  <span class="php-quote">'Nette\\Web\\IHttpResponse'</span> =&gt; <span class="php-quote">'Nette\\Web\\HttpResponse'</span>,
  <span class="php-quote">'Nette\\Web\\IUser'</span> =&gt; <span class="php-quote">'Nette\\Web\\User'</span>,
  <span class="php-quote">'Nette\\Caching\\ICacheStorage'</span> =&gt; 
  <span class="php-keyword1">array</span> (
    <span class="php-num">0</span> =&gt; <span class="php-quote">'Nette\\Configurator'</span>,
    <span class="php-num">1</span> =&gt; <span class="php-quote">'createCacheStorage'</span>,
  ),
  <span class="php-quote">'Nette\\Web\\Session'</span> =&gt; <span class="php-quote">'Nette\\Web\\Session'</span>,
  <span class="php-quote">'Nette\\Loaders\\RobotLoader'</span> =&gt; 
  <span class="php-keyword1">array</span> (
    <span class="php-num">0</span> =&gt; <span class="php-quote">'Nette\\Configurator'</span>,
    <span class="php-num">1</span> =&gt; <span class="php-quote">'createRobotLoader'</span>,
  ),
)</pre></td>
			<td> <a href="#$defaultServices" class="anchor">#</a></td>
		</tr>

		</table>
	</div>


</div>

	<div id="footer">
		Nette Framework API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</body>
</html>
